# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=nfspy
pkgver=1.0
pkgrel=8
groups=('blackarch' 'blackarch-automation')
pkgdesc='A Python library for automating the falsification of NFS credentials when mounting an NFS share.'
url='https://github.com/bonsaiviking/NfSpy'
license=('custom:unknown')
arch=('any')
depends=('python2' 'python2-fuse')
makedepends=('git')
source=("$pkgname::git+https://github.com/bonsaiviking/NfSpy.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  git tag | sed 's/v//'
}

package() {
  cd $pkgname

  python2 setup.py install --root="$pkgdir" --optimize=1
}

